{% import "@WebsiteBundle/macros/pagination.html.twig" as macros %}
<div class="card vh-70">
	<div class="card-header  d-flex">
		<div  class="w-100">共<span class="fontColorRed">{{ count }}</span>个收藏</div>
		<div class="p-2 flex-shrink-1">
			<a href="{{ path('app_course_doClearFailure') }}" data-confirm="确认要清除失效收藏吗?" class="btn btn-sm btn-secondary ajaxDelete">清除失效收藏</a>
		</div>
	</div>
	<div class="card-body p-1">
		{% if list %}
			<ul class="list-group list-group-flush p-0">
				{% for l in list %}
					<li class="list-group-item hover">
						<div class="row row-deck row-cards">
							<div class="col-lg-9">
								{% if l['isDelete'] %}
									<del>
									{% endif %}
									<a href="{{ path('app_course_detail', {id:l['goodsInfo']['id']}) }}">{{ l['goodsInfo']['name'] }}</a>
									{% if l['isDelete'] %}
									</del>
								{% endif %}

							</div>
							
							<div class="col-lg-2">
								<ol class="breadcrumb" aria-label="breadcrumbs">
									<li class="breadcrumb-item">
										{% if l['isDelete'] %}
											<del>
											{% endif %}
											{% if l['goodsInfo']['shopPrice'] >0 %}
												<span class="badge bg-red">¥{{ l['goodsInfo']['shopPriceView'] }}</span>
											{% else %}
												<span class="badge bg-teal">免费</span>
											{% endif %}
											{% if l['isDelete'] %}
											</del>
										{% endif %}
									</li>
									<li class="breadcrumb-item">
										{% if l['isDelete'] %}
											<del>
											{% endif %}
											{{ l['goodsInfo']['buyNumberFalse'] }}人购买
											{% if l['isDelete'] %}
											</del>
										{% endif %}
									</li>
								</ol>
							</div>
							<div class="col-lg-1">
							<a href="javascript:;" data-href="{{ path('app_course_doFav', {id:l['goodsInfo']['id']}) }}" class="text-muted hide hoverdo small  ms-3">取消</a>
							</div>
						</div>
					</li>
				{% endfor %}
			</ul>
			{{ macros.pagination(pagination) }}
		{% else %}
			{{ include('@WebsiteBundle/empty.html.twig',{msg:'数据为空!'}) }}
		{% endif %}
	</div>
</div>
